<template>
	<div class="w-full">
		<div class="flex items-center absolute top-0 left-0 text-14px cursor-pointer" @click="back">
			<el-icon>
				<ArrowLeft />
			</el-icon>
			<p>
				返回
			</p>
		</div>
		<div class="w-full flex items-center justify-center">
			<div class="w-40%">
				<p class="text-34px text-[#000] font-bold">人脸验证</p>
				<div
					class="mt-30px border-1px border-solid border-#E5E6EB rounded-8px flex flex-col items-start justify-center h-90px box-border pr-20px pl-20px"
					@click="next">
					<div class="flex items-center">
						<img src="/person/computer.svg" class="w-20px h-20px">
						<p class="ml-10px text-18px text-#000000">当前设备验证</p>
					</div>
					<p class="text-#86909C text-14px mt-10px ml-38px">设备需要有摄像头</p>
				</div>
				
				<div
					class="mt-30px border-1px border-solid border-#E5E6EB rounded-8px flex flex-col items-start justify-center p-20px ">
					<div class="flex items-center">
						<img src="/person/phone.svg" class="w-20px h-20px">
						<p class="ml-10px text-18px text-#000000">手机验证</p>
					</div>
					<p class="text-#86909C text-14px mt-10px ml-38px">请使用相机扫码连接至手机（如扫码后手机页面显示空白，请刷新二维码并重新扫描）</p>
					<div class="flex items-center justify-center w-full mt-20px">
						<img src="/person/wechat-code.svg"
						class="w-140px h-140px">
					</div>
				</div>
			</div>
		</div>
	</div>
</template>
<script lang="ts" setup>
import { ref } from 'vue';
const emits = defineEmits(['back', 'next'])

const next = () => {
	emits('next')
}

const back = () => {
	emits('back')
}
</script>
<style lang="scss" scoped>
::v-deep .el-collapse {
	border: 1px solid #E5E6EB;
	border-radius: 8px;
	margin-top: 20px;
	min-height: 90px;
}

::v-deep .el-collapse-item__header {
	border: none;
	padding: 0 20px 0 20px;
	border-radius: 10px;
	min-height: 90px;
	box-sizing: border-box;
	font-weight: 300;
}

::v-deep .el-collapse-item.is-active .el-collapse-item__wrap {
	border-radius: 8px;
}
</style>
